package mis.ds.ps.controller;

import java.util.HashMap;
import java.util.Map;

public class ResultModule2 {
//	private String entity;
//	private Map<Integer, Integer> mapPrefs;
	private Map<String, Map<Integer,Integer>> mapPrefs = new HashMap<String,Map<Integer, Integer>>();
	
	public ResultModule2() {
//		mapPrefs = new HashMap<String,HashMap<Integer, Integer>()>();
	}
	
	public boolean addResult(String entity, Integer row, Integer col) {
		if (entity != null && row != null && col != null) {
			Map<Integer,Integer> celulas = new HashMap<Integer, Integer>();
			celulas.put(row,col);
			this.mapPrefs.put(entity, celulas);
			return true;
		}		
		return false;
	}
	
	public Map<String, Map<Integer,Integer>> getPreferencias() {
		return mapPrefs;
	}

}
